<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<button id="go">前进</button>
		<button id="back">后退</button>
		<script type="text/javascript">
			// var go = document.querySelector("#go");
			// go.addEventListener('click',function(){})
			
			document.querySelector("#go").addEventListener('click',function(){
				history.go(2);
			})
			
			document.querySelector("#back").addEventListener('click',function(){
				history.back();//后退一步
			})
		</script>
	</body>
</html>
